package com.demo.base.model;

/***********************************************************************
 * Module:  公告信息.java
 ***********************************************************************/
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.demo.base.model.system.EntityBase;

@Entity
@Table(name = "public_notice", schema = "nbim")
//@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class PublicNotice extends EntityBase{

    public static final String TITLE = "title";
    public static final String NOTICE = "notice";
    public static final String STATUS = "status";
    public static final String START_TIME = "startTime";
    public static final String STATUS_VALID = "0";
    public static final String STATUS_CLOSE = "1";
    public static final Integer STATUS_CLOSE_INT = 1;
    public static final String TIPABLE = "tipable";
    public static final Integer TIPABLE_YES = new Integer(1);
    public static final String PUBLISHER = "publisher";

    // 公告标题
    public String title;
    // 内容
    public String notice;
    // 发布开始时间
    public Date startTime;
    // 公告结束时间
    public Date endTime;
    //是否有滚动提示,0 表示没有，1 表示有
    public Integer tipable;
    // 发布人
    public String publisher;
    //浏览数
    public Integer browsingNumber;
    //关注数
    public Integer followersNumber;
    // 状态 0 生效，1 关闭
    public Integer status;
    //关键词
    public String keywords;
    //简介
    public String summary;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getTipable() {
        return tipable;
    }

    public void setTipable(Integer tipable) {
        this.tipable = tipable;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Integer getBrowsingNumber() {
        return browsingNumber;
    }

    public void setBrowsingNumber(Integer browsingNumber) {
        this.browsingNumber = browsingNumber;
    }

    public Integer getFollowersNumber() {
        return followersNumber;
    }

    public void setFollowersNumber(Integer followersNumber) {
        this.followersNumber = followersNumber;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }
}
